@import '../../style/aiui_mixin.scss';

.edit-persona-container {
  overflow-y: auto;

  .inline-input {
    display: inline-block;
    width: 280px;
    margin-right: 20px;
  }
}

.persona-item {
  margin: 40px;

  header {
    @include aiui-h5;
    @include aiui-text-primary;
  }
  main {
    margin: 20px 0;

    .editable-setting-container {
      display: flex;
      flex-direction: row;
      align-items: center;

      button {
        margin-left: 18px;
      }
    }
    .err {
      @include aiui-ui-13;
      color: var(--hai-ui-red4);
      margin-left: 6px;
      margin-top: 10px;
    }
  }
  border-bottom: 1px solid var(--hai-ui-layout-2);
  &:last-child {
    border: none;
  }
}

.avatar-upload-container {
  display: flex;
  justify-content: left;
  align-items: center;
  min-width: 200px;
  gap: 10px;
  margin: 20px 0;

  input {
    width: 280px;
  }

  header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    .error {
      color: var(--hf-danger-btn-color);
    }
  }

  main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .cropper-box {
    width: 280px;
    height: 280px;
    margin-right: 40px;
  }

  .preview-box {
    display: flex;
    border: 1px solid var(--hai-ui-layout-2);
    flex-direction: column;
    height: 280px;
    width: 280px;
    background: var(--hai-ui-layout-m1);
    label {
      @include aiui-h5;
      @include aiui-text-secondary;
      margin: 20px;
    }
    button {
      width: 40%;
    }
    .center-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .img-preview {
      width: 100px;
      height: 100px;
      overflow: hidden;
      border-radius: 50%;
      margin-bottom: 20px;
    }

    .preview-btn {
      float: right;
      margin: 5px;
    }
  }

  .avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    cursor: pointer;
  }
}

.bio-edit-container {
  textarea {
    width: 100%;
    min-height: 80px;
  }
}
